package com.ph.irp.base.assistantmaterial.dao;
import java.util.List;
import com.ph.irp.model.PBaseAssistantmaterialCandiatecategory;
/**
 * 职员类别
 * 增，删，改，精确查询，动态模糊查询
 * @author Administrator
 *
 */
public interface PBaseAssistantmaterialCandiatecategoryDao {
	public boolean isSame(String candiateCategoryCode)throws Throwable;

	public void addCandiateCategory(PBaseAssistantmaterialCandiatecategory candiateCategory)throws Throwable;
	
	public void deleteCandiateCategory(int candiateCategoryId)throws Throwable;
	
	public void updateCandiateCategory(PBaseAssistantmaterialCandiatecategory candiateCategory)throws Throwable;
	
	public PBaseAssistantmaterialCandiatecategory getCandiateCategoryById(int candiateCategoryId)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getCandiateCategoryByName(String name)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getCandiateCategoryByCode(String Code)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getCandiateCategoryByNameAndCode(String name,String Code)throws Throwable;
	
	public List<PBaseAssistantmaterialCandiatecategory> getCandiateCategoryList()throws Throwable;
}
